package com.hairline.service;


import com.hairline.bean.Role;
import com.hairline.bean.bo.RolePermissionsBO;
import com.hairline.bean.vo.OptionsVO;
import com.hairline.bean.vo.permission.PermissionVO;

import java.util.List;
import java.util.Map;

public interface AdminRoleService {
    Map<String,Object> roleList(int page, int limit, String sort, String order, String name);

    Role roleCreate(Role role);

    int roleUpdate(Role role);

    void roleDelete(Role role);

    Map<String, Object> adminList(int page, int limit, String sort, String order, String username);

    List<OptionsVO> roleOptions();

    PermissionVO rolePermissions(int roleId);

    void updatePermissions(RolePermissionsBO rolePermissionsBO);
}
